package cn.legend.travel.admin.authorize.dao.persist.repository;

public interface IRoleBackendApiRepository {

    int addNewPermission(Long roleId, Long apiId);

    int countByRoleIdAndApiId(Long roleId, Long apiId);

    int deletePermission(Long roleId, Long apiId);

    void deleteByRoleId(Long roleId);

    int countByRoleId(Long roleId);

    int getByRoleAndMenuId(Long roleId, Long menuId);
}
